/**
 * Created by DevilsEyes on 2016/3/14.
 */
//此处用来存放数据，来进行跨页面数据通讯
//对db 进行拓展
'use strict';

db.data = {};

db.set = function (key, value) {
    if (typeof key == 'string') {
        this.data[key] = value;
    }
};

db.get = function (key) {
    if (typeof key == 'string') {
        return this.data[key] || null;
    }
};

db.clear = function (key) {
    if (typeof key == 'string') {
        var tmp = this.data[key] = null;
    }
};